package com.linzm.j2eetype.interceptingfilter06;

import com.linzm.j2eetype.interceptingfilter06.filter.AuthenticationFilter;
import com.linzm.j2eetype.interceptingfilter06.filter.DebugFilter;
import com.linzm.j2eetype.interceptingfilter06.filter.FilterManager;

/**
 * @Author zimingl
 * @Date 2023/4/16 16:36
 * @Description: InterceptingFilterDemo
 */
public class InterceptingFilterDemo {
    public static void main(String[] args) {
        FilterManager filterManager = new FilterManager(new Target());
        filterManager.setFilter(new AuthenticationFilter());
        filterManager.setFilter(new DebugFilter());

        Client client = new Client();
        client.setFilterManager(filterManager);
        client.sendRequest("HOME");
    }
}
